<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div id="test" onclick="bian()" style="width:200px;height:200px;background:fuchsia;border:5px solid aqua"></div>
</body>
<script type="text/javascript">
	function bian(){
		var test = document.getElementById('test');
		var w = parseInt(test.style.width);
		var h = parseInt(test.style.height);
		var b = parseInt(test.style.borderBottomWidth);
		
		test.style.width = w + 20 + 'px';
		test.style.height = h + 20 + 'px';
		test.style.borderBottomWidth = b + 5 + 'px';
	}
</script>
</html>
